<template>
	<!-- 轮播文章详情 -->
	<view>
		<view class="content" v-html="content">
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				field:'',
				content:''
			};
		},
		onLoad(option) {
			this.field = option.field
			this.fnGetArticle()
		},
		methods:{
			fnGetArticle(){
				this.request({
					url: '/czb/user_index/getConfigArticleDetails',
					method: 'POST',
					data: {
						'store_id':1,
						'field': this.field
					},
				}).then((ret) => {
					console.log(ret);
					if (ret.code == 0) {
						this.content = ret.data.content
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		padding: 20rpx;
	}
</style>
